package com.dykj.fireFighting.api.socialUnit.personnelstructure.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @Description 消防安全-人员架构管理
 * @Author zly
 * @Date  2021-06-28 16:00:17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "消防安全-人员架构管理")
@TableName("personnel_structure")
public class PersonnelStructure extends Model<PersonnelStructure> {
	private static final long serialVersionUID = 1L;

	@TableId
	private String id;
	/**
	 * 创建人
	 */
    @ApiModelProperty(value = "创建人")
	@TableField("create_by")
	private String createBy;
	/**
	 * 创建时间
	 */
    @ApiModelProperty(value = "创建时间")
	@TableField("create_time")
	private Date createTime;
	/**
	 * 删除标识 0已删除 1未删除
	 */
    @ApiModelProperty(value = "删除标识 0已删除 1未删除")
	@TableField("is_del")
	private Integer isDel;
	/**
	 * 修改人
	 */
    @ApiModelProperty(value = "修改人")
	@TableField("update_by")
	private String updateBy;
	/**
	 * 修改时间
	 */
    @ApiModelProperty(value = "修改时间")
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 单位id
	 */
    @ApiModelProperty(value = "单位id")
	@TableField("unit_id")
	private String unitId;
	/**
	 * 父级id
	 */
    @ApiModelProperty(value = "父级id")
	@TableField("parent_id")
	private String parentId;
	/**
	 * 组织名称
	 */
    @ApiModelProperty(value = "组织名称")
	@TableField("organization_name")
	private String organizationName;
	/**
	 * 人员名称
	 */
    @ApiModelProperty(value = "人员名称")
	@TableField("user_name")
	private String userName;
	/**
	 * 人员电话
	 */
    @ApiModelProperty(value = "人员电话")
	@TableField("user_phone")
	private String userPhone;
	/**
	 * 职责
	 */
    @ApiModelProperty(value = "职责")
	private String duty;

    @TableField(exist = false)
	private String createUserName;

    @TableField(exist = false)
	private String enterpriseName;

	@TableField(exist = false)
	private String parentName;
}
